<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header"></head>
<body>
<nav th:replace="layouts::navbar"></nav>

<div class="container">
    <form th:action="@{/sales/save}" th:object="${sale}" method="POST">
        <input type="hidden" th:field="${sale.saleId}">
        <div class="logo"></div>

        <label for="data">销售时间:</label>
        <input type="text" id="data" th:field="${sale.data}">
        <span th:if="${#fields.hasErrors('data')}" th:errors="${sale.data}"></span>


<!--        姓名： <select multiple="multiple" th:field="*{head}">-->
<!--                    <option th:each="head : ${allHeads}" th:value="${head.headId}" th:text="${head.name}"></option>-->
<!--                </select>-->

        <button type="submit">新增销售</button>
    </form>
</div>
</body>
</html>